
	cmake_minimum_required(VERSION 3.18.1)
	PROJECT(practice VERSION 0.1.0)
	add_definitions(-DDEFINE_CONDITION)
	set(CMAKE_BUILD_TYPE "Debug")
	set(CMAKE_CXX_STANDARD 17)
	set (CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} -ldl")
	file(GLOB copyResources "./assets")
    file(COPY ${copyResources} DESTINATION ${CMAKE_BINARY_DIR})
	include_directories(include /usr/include) 
	add_library(xdg STATIC src/xdg-shell-protocol.c)
	add_library(client SHARED src/client.cc src/xdg-shell-protocol.c gpu/gpu.cc gpu/vao.cc gpu/bufferObject.cc gpu/shader/defaultShader.cc gpu/shader/shader.cc gpu/raster.cc src/image.cc)
	add_executable(main main.cc) 
	target_link_libraries(main xdg wayland-client wayland-server wayland-egl EGL GL client) 
	# add_executable(test test_main.cc)
	# target_link_libraries(test xdg wayland-client wayland-server wayland-egl EGL GL ) 